package srgarcom;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

/**
 * Created by Rafael on 15/10/13.
 */
public class sgTableInput extends Activity {

    EditText tableNumber;
    Button btnTableInput;

    public void onCreate(Bundle savedInstanceState) {

        this.onCreate(savedInstanceState);
        setContentView(R.layout.sgtableimput);

        tableNumber = (EditText) findViewById(R.id.tableNumber);
        btnTableInput = (Button) findViewById(R.id.btnTableInput);

        //Button response to Make Order
        btnTableInput.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {

                String TableN = tableNumber.getText().toString();
                int tableId = Integer.parseInt(TableN);
                Intent i = new Intent(getApplicationContext(), sgMainMenu.class);
                startActivity(i);
                finish();

            }
        });

    }
}
